<div id="edit-title">创建帐号</div>
<div>
	<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
		<input type="hidden" name="create" value="true" />
		<input type="hidden" name="rand" value="<?php echo $form['rand']; ?>" />
		<div class="edit-name">账户 <?php echo form_error('username', '<span class="error">', '</span>'); ?></div>
		<div class="edit-text"><input type="text" name="username" value="<?php echo set_value('username') ?>" /></div>
		<div class="edit-name">密码 <?php echo form_error('password', '<span class="error">', '</span>'); ?></div>
		<div class="edit-text"><input type="password" name="password" /></div>
		<div class="edit-name">密码确认 <?php echo form_error('passconf', '<span class="error">', '</span>'); ?></div>
		<div class="edit-text"><input type="password" name="passconf" /></div>
		<div class="edit-name">真实姓名 <?php echo form_error('realname', '<span class="error">', '</span>'); ?></div>
		<div class="edit-text"><input type="text" name="realname" value="<?php echo set_value('realname') ?>" /></div>
		<div class="edit-name">联系方式 <?php echo form_error('phone', '<span class="error">', '</span>'); ?></div>
		<div class="edit-text"><input type="text" name="phone" value="<?php echo set_value('phone') ?>" /></div>
		<div class="edit-name">权限 <?php echo form_error('right_ids[]', '<span class="error">', '</span>'); ?></div>
		<?php
		foreach ($form['rights'] as $k => $v) {
		?>
		<div class="edit-right edit-checkbox"><input type="checkbox" name="right_ids[]" value="<?php echo $k; ?>" <?php echo set_checkbox('right_ids[]', $k); ?> /> <?php echo $v[1]; ?></div>
		<?php
		}
		?>
		<div class="clear"></div>
		<div class="edit-submit"><input type="submit" value="创建" /></div>
	</form>
</div>